#-------------------------------------------------
#
# Project created by QtCreator 2018-05-14T17:46:01
#
#-------------------------------------------------

QT       += core gui network printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets serialport

RC_ICONS = DR.ico
TARGET = DRCabinet
TEMPLATE = app
DEPENDPATH += $$PWD/pinyin

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
#LIBS += -lws2_32
if(contains(DEFINES,PC)){
LIBS += -L$$PWD/libs/PC/libusb -lusb-1.0
#LIBS += -L/home/hp/mygit/SmartCabinet/SmartCabinet/libs/PC/libusb -lusb-1.0
LIBS += -L$$PWD/libs/PC/Crypto -lcrypto
}
if(contains(DEFINES,MC)){
LIBS += -L$$PWD/libs/MC/libusb -lusb-1.0
LIBS += -L$$PWD/libs/MC/Crypto -lcrypto
#LIBS += -L$$PWD/libs/MC/pinyin -lsyszuxpinyin
}
if(contains(DEFINES,MY)){
LIBS += -L$$PWD/libs/MY/libusb -lusb-1.0
LIBS += -L$$PWD/libs/MY/Crypto -lcrypto
}

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += main.cpp\
        mainwidget.cpp \
    cabinet.cpp \
    cabinetconfig.cpp \
    userinfo.cpp \
    lockctrl.cpp \
    chineseletterhelper.cpp \
    server.cpp \
    globalapp.cpp \
    keyboad.cpp \
    ctrlinfo.cpp \
    ctrlreport.cpp \
    reporttask.cpp \
    Json/cJSON.c \
    Qextserial/qextserialport.cpp \
    Qextserial/qextserialport_unix.cpp \
    Temperature/tempmain.cpp \
    Temperature/tempcase.cpp \
    Hid/qhid.cpp \
    Hid/hid.c \
    Hid/hid-libusb.c \
    devicemanager.cpp \
    Temperature/tempmanager.cpp \
    Temperature/temprecorder.cpp \
    setting.cpp \
    pinyin/syszuxpinyin.cpp \
    pinyin/syszuxim.cpp \
    inputcontex/keyboard.cpp \
    inputcontex/myinputpanelcontext.cpp \
    qcustomplot.cpp \
    network/networkset.cpp \
    network/qnetinterface.cpp \
    http/httpserver.cpp \
    http/tasksession.cpp \
    echarts/jecharts.cpp \
    Temperature/temptopdf.cpp

HEADERS  += mainwidget.h \
    cabinet.h \
    cabinetconfig.h \
    userinfo.h \
    lockctrl.h \
    chineseletterhelper.h \
    server.h \
    globalapp.h \
    keyboad.h \
    ctrlinfo.h \
    ctrlreport.h \
    reporttask.h \
    Json/cJSON.h \
    Qextserial/qextserialport.h \
    Qextserial/qextserialport_global.h \
    Qextserial/qextserialport_p.h \
    Temperature/tempmain.h \
    Temperature/tempcase.h \
    Hid/hid.h \
    Hid/hidapi.h \
    Hid/libusb.h \
    Hid/qhid.h \
    devicemanager.h \
    Temperature/tempmanager.h \
    Temperature/temprecorder.h \
    setting.h \
    pinyin/syszuxpinyin.h \
    pinyin/syszuxim.h \
    inputcontex/keyboard.h \
    inputcontex/myinputpanelcontext.h \
    qcustomplot.h \
    network/networkset.h \
    network/qnetinterface.h \
    http/httpserver.h \
    http/tasksession.h \
    echarts/jecharts.h \
    globalconfig.h \
    Temperature/temptopdf.h

FORMS    += mainwidget.ui \
    cabinet.ui \
    keyboad.ui \
    Temperature/tempmain.ui \
    Temperature/tempcase.ui \
    setting.ui \
    pinyin/syszuxpinyin.ui \
    inputcontex/keyboard.ui \
    network/networkset.ui

RESOURCES += \
    images.qrc

DISTFILES += \
    Qextserial/LICENSE
